home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / Report Writers / Crystal Repot 9.0 Full CD version / Setup.exe / Windows / System32 / HTMLRE90.DLL / HTML / 11809 < prev    next >
Encoding:
Text File  |  2002-07-05  |  8.2 KB  |  299 lines

  1. <html>
  2. <head>
  3.   <LINK REL="stylesheet" TYPE="text/css" HREF="%1css/default.css">
  4. </head>
  5. <body LEFTMARGIN="5" RIGHTMARGIN="5" onLoad="JavaScript:reset();">
  6.  
  7. <DIV ID="tooltip" STYLE="position:absolute;visibility:hidden;z-index:99;"></DIV>
  8.  
  9. <SCRIPT SRC="%1js/helps.js"></SCRIPT>
  10. <SCRIPT SRC="%1js/tips.js"></SCRIPT>
  11. <SCRIPT SRC="%1js/FormChek.js"></SCRIPT>
  12.  
  13. <script language="Javascript">
  14. //LOCALIZATION STRINGS
  15. var L_SIZE_NOT_VALID = "Report alert record size must be a number greater or equal to zero.";
  16. </script>
  17.  
  18. <SCRIPT Language="JavaScript">
  19.  
  20. var numOfAlerts = %3;
  21.  
  22. function update()
  23. {
  24.     var i;
  25.     var alertSize;
  26.  
  27.     // Validate only if destination is enabled.
  28.     if ( document.forms.alertnotify.notifyenabledchk.checked == true )
  29.     {
  30.         // validate main
  31.         for ( i = 1; i<= numOfAlerts; i++)
  32.         {
  33.             alertSize = "maxalertsize" + i;
  34.  
  35.             if ( !isNonnegativeInteger( document.forms.alertnotify.elements[alertSize].value, false ) )
  36.             {
  37.                 alert( L_SIZE_NOT_VALID );
  38.                 document.forms.alertnotify.elements[alertSize].focus();
  39.                 mainValidated = false;
  40.                 return;
  41.             }
  42.         }
  43.  
  44.         // validate destination
  45.         if ( !destOKToSubmit() )
  46.             return;
  47.     }
  48.  
  49.     document.forms.alertnotify.submit();
  50. }
  51.  
  52. function reset()
  53. {
  54.     document.forms.alertnotify.reset();
  55.  
  56.     resetDest();
  57.  
  58.     disableAlertNotification();
  59. }
  60.  
  61. function disableAlertNotification()
  62. {
  63.     var doDisableAll;
  64.  
  65.     if (document.forms.alertnotify.notifyenabledchk.checked == true)
  66.     {
  67.         document.forms.alertnotify.elements.alertnotifyenabled.value = "true";
  68.         doDisableAll = false;
  69.     }
  70.     else
  71.     {
  72.         document.forms.alertnotify.elements.alertnotifyenabled.value = "false";
  73.         doDisableAll = true;
  74.     }
  75.  
  76.     // disable all common form elements
  77.     document.forms.alertnotify.msg.disabled = doDisableAll;
  78.  
  79.     var i;
  80.     var viewerURL;
  81.     var alertSize;
  82.     var linkbutton;
  83.     for ( i = 1; i <= numOfAlerts; i++)
  84.     {
  85.         viewerURL = "viewerurl" + i;
  86.         alertSize = "maxalertsize" + i;
  87.         linkbutton = "linkbutton" + i;
  88.  
  89.         document.forms.alertnotify.elements[viewerURL].disabled = doDisableAll;
  90.         document.forms.alertnotify.elements[alertSize].disabled = doDisableAll;
  91.         document.forms.alertnotify.elements[linkbutton].disabled = doDisableAll;
  92.     }
  93.  
  94.     // call destination speicific disable function
  95.     onSetDestDisabled( doDisableAll);
  96. }
  97.  
  98. function useSILink( idx )
  99. {
  100.     document.forms.alertnotify.elements["viewerurl"+idx].value = "%SI_VIEWER_URL%";
  101. }
  102.  
  103. </SCRIPT>
  104.  
  105. <FORM name="alertnotify" method="post" action="%2">
  106. <INPUT name="server_default" type="hidden">
  107. <SPAN class=listSelected>Set alert notification.</SPAN><BR>
  108. When scheduling the report, you can choose whether to send out alert notification or not.
  109. With alert notification disabled, alerts may still be triggered.<BR>
  110. <BR>
  111. <TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0" width="100%">
  112. <TR>
  113.   <TD width="3%"> </TD>
  114.   <TD class=list>
  115.     <TABLE cellpadding="0" cellspacing="0" border="0" width="100%">
  116.     <TR>
  117.         <TD class=list>
  118.             <INPUT name="notifyenabledchk" type=checkbox %6 onClick="JavaScript:disableAlertNotification();"> Enable alert notification.</INPUT>
  119.             <INPUT name="alertnotifyenabled" type=hidden value="">
  120.         </TD>
  121.     </TR>
  122.     </TABLE>
  123.   </TD>
  124. </TR>
  125.  
  126. <TR>
  127.   <TD> </TD>
  128.   <TD class=list><BR>
  129.  
  130. <!-- destination -->
  131. <SCRIPT language="JavaScript">
  132. //LOCALIZATION STRINGS
  133. var L_FROM_FIELD_EMPTY = "The From field cannot be empty.";
  134. var L_TO_FIELD_EMPTY   = "The To field cannot be empty.";
  135. </SCRIPT>
  136. <SCRIPT language="JavaScript">
  137. function resetDest()
  138. {
  139.   // custom destionation reset here.
  140. }
  141.  
  142. function onSetDestDisabled( doDisableAll )
  143. {
  144.     document.forms.alertnotify.smtpdefault[0].disabled = doDisableAll;
  145.     document.forms.alertnotify.smtpdefault[1].disabled = doDisableAll;
  146.     
  147.     //if we need to renable, we need to figure out whether we're using the default.
  148.     var disableTheRest = true;
  149.  
  150.     if ( doDisableAll == false )
  151.     {
  152.         if ( document.forms.alertnotify.smtpdefault[1].checked == true )
  153.             disableTheRest = false;
  154.     }
  155.     onSetUseDefault( disableTheRest);
  156. }
  157.  
  158. function onSetUseDefault( useDefault )
  159. {
  160.     document.forms.alertnotify.sender.disabled  = useDefault;
  161.     document.forms.alertnotify.to.disabled      = useDefault;
  162.     document.forms.alertnotify.cc.disabled      = useDefault;
  163.     document.forms.alertnotify.subject.disabled = useDefault;
  164. }
  165.  
  166. function destOKToSubmit()
  167. {
  168.     //check for destination only if we are using some custom settings
  169.     if ( document.forms.alertnotify.smtpdefault[1].checked == true )
  170.     {
  171.         if ( document.forms.alertnotify.sender.value == "" )
  172.         {
  173.             alert( L_FROM_FIELD_EMPTY );
  174.             document.forms.alertnotify.sender.focus();
  175.             return false;
  176.         }
  177.  
  178.         if ( document.forms.alertnotify.to.value == "" )
  179.         {
  180.             alert( L_TO_FIELD_EMPTY );
  181.             document.forms.alertnotify.to.focus();
  182.             return false;
  183.         }
  184.         document.forms.alertnotify.server_default.value = "false";
  185.     }
  186.     else
  187.     {
  188.         document.forms.alertnotify.server_default.value = "true";
  189.     }
  190.     return true;
  191. }
  192.  
  193. </SCRIPT>
  194. Configure alert notification email delivery options.<BR>
  195. <BR>
  196.  
  197. <TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0" width="100%">
  198. <TR><TD width="3%"> </TD>
  199. <TD class=list>
  200. You can send the alerts to an SMTP server with a choice of two different sets of values:<BR>
  201.  
  202. <TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0">
  203. <TR>
  204.   <TD class=list colSpan=2><INPUT onclick="javascript:onSetUseDefault(true);" type=radio %7 name=smtpdefault value="true"> Use the Crystal Job Server's defaults </TD>
  205. </TR>
  206. <TR>
  207.   <TD class=list colSpan=2><INPUT onclick="javascript:onSetUseDefault(false);" type=radio %8 name=smtpdefault value="false"> Set the values to be used at schedule time here: </TD>
  208. </TR>
  209. <TR>
  210.   <TD WIDTH="5%"> </TD>
  211.   <TD>
  212.     <TABLE>
  213.     <TBODY>
  214.     <TR>
  215.       <TD> </TD>
  216.       <TD class=list vAlign=top>From:</TD>
  217.       <TD class=list><INPUT size=40 name=sender value="%9"></TD>
  218.     </TR>
  219.     <TR>
  220.       <TD> </TD>
  221.       <TD class=list vAlign=top>To:</TD>
  222.       <TD class=list><INPUT size=40 name=to value="%10"></TD>
  223.     </TR>
  224.     <TR>
  225.       <TD> </TD>
  226.       <TD class=list vAlign=top>Cc:</TD>
  227.       <TD class=list><INPUT size=40 name=cc value="%11"></TD>
  228.     </TR>
  229.     <TR>
  230.       <TD> </TD>
  231.       <TD class=list vAlign=top>Subject:</TD>
  232.       <TD class=list><INPUT size=40 name=subject value="%12"></TD>
  233.     </TR>
  234.     </TBODY>
  235.     </TABLE>
  236.   </TD>
  237. </TR>
  238. </TABLE>
  239.  
  240. </TD></TR>
  241. </TABLE>
  242. <BR>
  243. Compose a message that will be shown in the alert notification before all alert messages.<BR>
  244. <BR>
  245. <TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0" width="100%">
  246. <TR>
  247.   <TD WIDTH="3%"> </TD>
  248.   <TD>
  249.     <TABLE width="100%">
  250.     <TR><TD class=list>
  251.     Message:<BR>
  252.     <TEXTAREA name=msg rows=7 wrap=virtual cols=40>%5</TEXTAREA><BR>
  253.     </TD></TR>
  254.     </TABLE>
  255.   </TD>
  256. </TR>
  257. </TABLE>
  258. <BR>
  259. Set viewing URL and number of alerts. To see the most recent list of alerts, click on Refresh in Properties Page.<BR>
  260. <BR>
  261. <TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0" WIDTH="100%">
  262. <TR>
  263.   <TD WIDTH="3%"> <INPUT TYPE=HIDDEN NAME="numalerts" value="%3"></TD>
  264.   <TD>
  265.     <TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0" WIDTH="100%">
  266.     <TR CLASS="listHeading" WIDTH="100%">
  267.       <TD CLASS="listHeading" WIDTH="15%" ALIGN="LEFT"><span ID="text"> Alert Name</SPAN></TD>
  268.       <TD CLASS="listHeading" WIDTH="55%" ALIGN="LEFT"><span ID="text">Viewer URL</SPAN></TD>
  269.       <TD CLASS="listHeading" WIDTH="20%" ALIGN="LEFT"><span ID="text">Maximum Alert Records</SPAN></TD>
  270.       <TD CLASS="listHeading" WIDTH="10%" ALIGN="LEFT"><span ID="text">Status</SPAN></TD>
  271.     </TR>
  272. %4
  273.     </TABLE>
  274.   </TD>
  275. </TR>
  276. </TABLE>
  277.  
  278. <TABLE cellpadding="0" cellspacing="0" border="0" width="100%">
  279. <TR>
  280. <TD align="right">
  281.     <TABLE cellpadding="0">
  282.     <TR valign=center>
  283.         <TD class="clsButton" align="middle" nowrap>
  284.         <div class="clsButton"><a href="javascript:update();" onMouseOver="St(17);window.status='';return true;" onMouseOut="Ht()"> Update </a></div>
  285.         </TD>
  286.         <TD class="clsButton" align="middle" nowrap>
  287.         <div class="clsButton"><a href="javascript:reset();" onMouseOver="St(17);window.status='';return true;" onMouseOut="Ht()"> Reset </a></div>
  288.         </TD>
  289.     </TR>
  290.     </TABLE>
  291. </TD>
  292. </TR>
  293. </TABLE>
  294.  
  295. </TD>
  296. </TR>
  297. </TABLE>
  298. </body>
  299. </html>